<?php
/**
 * DynaGrid - The PHP datagrid
 *
 * @package    DynaGrid
 * @author     $Author: keesschepers $
 * @version    $Id: Interface.php 12 2011-02-12 00:33:20Z keesschepers $
 */

include_once 'HTML/Interface.php';

interface DynaGrid_PageBrowser_Interface extends DynaGrid_HTML_Interface {
	/**
	 *
	 * Defines how many pagenumbers the grid will show. For example if browseoffset is 4
	 * then the pagebrowser could show previous 4 5 6 7 next
	 * 
	 * @param $size the size of the offset
	 */
	public function setBrowseOffset($size);
	/**
	 * Set the limit of results per page.
	 *
	 * @param integer $limit
	 */
	public function setLimit($limit);
	/**
	 * Get the current page number
	 *
	 * @return integer
	 */
	public function getCurrentPage();
}
?>
